package com.zhh.springcloud.dao;

import com.zhh.springcloud.model.Department;  //我们自定义的module模块，通过pom导入进来使用
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper  // dao层mybatis识别
@Repository  //spring识别
public interface DepartmentDao {

    //增
    public int add(Department department);

    //delete
    public int deleteById(int did);

    //update
    public int modifyById(Department department);

    //查所有人
    public List<Department> selectAll();

    //查一个人
    public Department selectById(int did);


}
